package com.wn.sk.product.core.lock;

import java.util.concurrent.TimeUnit;

/**
 * @author yellow Docter
 * @date 2022 -09-05
 * @desc
 */
public interface RedisLock {

    /**
     * 获取锁
     */
    Boolean tryLock(String key, TimeUnit unit, Long timeout);
    /**
     * 释放锁
     */
    void release(String key);

}
